
import { createApp } from 'vue'
import { createPinia } from 'pinia'
//引入pinia持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
//引入初始化样式文件
import '@/styles/common.scss'
import 'element-plus/dist/index.css'; // 引入 Element Plus 样式
//引入mockjs
import '@/mock/index'
//引入全局组件插件
import { componentPlugin } from '@/components'
// 注册插件指令
import plugins from './plugins' // plugins

//引入懒加载指令插件并注册
import { lazyPlugin } from './directives'

//引入mockjs
import '@/mock/index'

//全屏
import VueFullPage from 'vue-fullpage.js'
import 'fullpage.js/dist/fullpage.css'


import App from './App.vue'
import router from './router'

const app = createApp(App)
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
app.use(componentPlugin)
app.use(plugins)
app.use(lazyPlugin)
app.use(VueFullPage)
app.mount('#app')




